package com.mdhw.common.enums;

import lombok.Getter;

/**
 * @author admin
 * @version 1.0.0
 * @ClassName ApiMessageEnum.java
 * @Description
 * @createTime 2022年04月30日 15:34:00
 */
@Getter
public enum ApiMessageEnum {

    SYSTEM_EXCEPTION("-1","系统异常"),

    SUCCESS("0000","提交成功"),

    ORDER_ERROR("10001","订单信息为空"),

    ORDER_COUNT_ERROR("10002","批量发货最多100条"),

    ORDER_EXISTENCE_ERROR("10003","订单已存在"),

    GOODS_ISNULL_ERROR("10004","商品为空"),

    SKU_ISNULL_ERROR("10005","商品SKU为空"),

    GOODS_CHANNE_ERROR("10006","商品没有对应的供应商"),

    ORDER_ISNULL_ERROR("10007","订单不已存在"),

    ORDER_ORDER_4_ERROR("10008","待收货状态才能修改"),

    ORDER_ORDER_2_ERROR("10009","待发货/待收货状态才能取消订单"),

    PARAMETER_ERROR("40000","参数不合法"),

    KEY_PAIR_ERROR("3000","access_key或者access_secret参数错误"),

    USER_ERROR("30002","账号未开通"),

    USER_STOP_ERROR("30003","账号已停用"),

    USER_SYNC_ERROR("30004","同步已关闭"),

    ;


    ApiMessageEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String code;

    public String message;

}
